package com.example.t410.dao;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "result")
public class Result {
    @Id
    private String id;
    private int sequenceNumber;
    private String ansCode;
    private String ansName;
    private String ansDisc;

    public Result() {
        // Default constructor
    }

    // Getters and setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getSequenceNumber() {
        return sequenceNumber;
    }

    public void setSequenceNumber(int sequenceNumber) {
        this.sequenceNumber = sequenceNumber;
    }

    public String getAnsCode() {
        return ansCode;
    }

    public void setAnsCode(String ansCode) {
        this.ansCode = ansCode;
    }

    public String getAnsName() {
        return ansName;
    }

    public void setAnsName(String ansName) {
        this.ansName = ansName;
    }

    public String getAnsDisc() {
        return ansDisc;
    }

    public void setAnsDisc(String ansDisc) {
        this.ansDisc = ansDisc;
    }

    // toString method for debugging purposes
    @Override
    public String toString() {
        return "Result{" +
                "id='" + id + '\'' +
                ", sequenceNumber=" + sequenceNumber +
                ", ansCode='" + ansCode + '\'' +
                ", ansName='" + ansName + '\'' +
                ", ansDisc='" + ansDisc + '\'' +
                '}';
    }
}

